import React from 'react'
import PropTypes from 'prop-types'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

const BottomBtn = ({ text, colorClass, icon, onBtnClick }) => {

  return (
    <button
      className={`btn btn-block no-border ${colorClass}`}
      onClick={() => { onBtnClick() }}
    >
      <FontAwesomeIcon style={{ marginRight: '5px' }} size="lg" icon={icon} />
      {text}
    </button>
  )
}

BottomBtn.propTypes = {
  text: PropTypes.string,
  colorClass: PropTypes.string,
  icon: PropTypes.object.isRequired,
  onBtnClick: PropTypes.func
}

export default BottomBtn